Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.rating.actions--actions

This contribution is part of XML component org.nuxeo.ecm.rating.actions inside nuxeo-rating-web-5.8.jar

Extension Point

Extension point actions of component ActionService.

Contributed Items

  • <action icon="/icons/like.png" id="documentLike" label="command.like" link="#{likeActions.like(currentUser, currentDocument)}" order="5" type="link">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>userNotLiked</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/unlike.png" id="documentUnlike" label="command.unlike" link="#{likeActions.cancelLike(currentUser, currentDocument)}" order="5" type="link">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>mutable_document</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>userLiked</filter-id>
          <properties>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <action icon="/icons/like.png" id="documentLike" label="command.like" link="#{likeActions.like(currentUser, currentDocument)}" order="5" type="link">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>userNotLiked</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/unlike.png" id="documentUnlike" label="command.unlike" link="#{likeActions.cancelLike(currentUser, currentDocument)}" order="5" type="link">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>mutable_document</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>userLiked</filter-id>
      <properties>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

  </extension>